package com.auto.sns.honour.dao.impl;

import java.util.List;
import java.util.Map;

import com.system.common.Page;
import com.auto.sns.honour.domain.SnsHonourUserDetail;
import com.auto.sns.honour.dao.ISnsHonourUserDetailDAO;
import com.system.util.PersistUtil;
import com.auto.sns.honour.sql.sqlid.SnsHonourUserDetailSqlID;
/**
 * : t_auto_sns_honour_user_detail
 * 
 * 
 * @author Gen
 */
public class SnsHonourUserDetailDAOImpl implements ISnsHonourUserDetailDAO{

	public SnsHonourUserDetail insertSnsHonourUserDetail(SnsHonourUserDetail bean){
		return PersistUtil.insert(bean, SnsHonourUserDetailSqlID.INSERT);
	}

	public boolean deleteSnsHonourUserDetail(String shudGuid){
		PersistUtil.delete(shudGuid, SnsHonourUserDetailSqlID.DELETE);
		return true;
	}	

	public SnsHonourUserDetail updateSnsHonourUserDetail(SnsHonourUserDetail bean){
		return PersistUtil.update(bean, SnsHonourUserDetailSqlID.UPDATE);
	}	

	public SnsHonourUserDetail loadSnsHonourUserDetail(String shudGuid){
		return PersistUtil.query(new SnsHonourUserDetail().getClass(), shudGuid);
	}

	public List<SnsHonourUserDetail> queryList(Map<String,Object> param,Page page){
		page.setCount(PersistUtil.countSpecial(param, SnsHonourUserDetailSqlID.QUERY));
		return PersistUtil.querySpecial(param, SnsHonourUserDetailSqlID.QUERY, page.getFullOrderBy(), page.getOffset(), page.getLimit());
	}

}
